function ncprotect(ply)
	if ply:Team() == 0 then
		if ply:GetPos().X <= -5190 then
			if ply:GetPos().Y >= 4440 then
				if ply:GetMoveType() == MOVETYPE_NOCLIP then
					RunConsoleCommand("noclip 0")
				end
			end
		end
	else if ply:Team() == 1 then
		if ply:GetPos().X >= 5190 then
			if ply:GetPos().Y <= -4440 then 
				if ply:GetMoveType() == MOVETYPE_NOCLIP then
					RunConsoleCommand("noclip 0")
				end
			end
		end
	end
	end
end
